package com.example.demo.service;

import com.example.demo.entity.Outstorage;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public interface OutstorageService {

    int createOutstorage(Outstorage outstorage);

    int deleteOutstorage(Integer oid);

    Outstorage findOutstorageById(Integer oid);

    List<Outstorage> findAllOutstorages();

    List<Outstorage> findOutstoragesByStorageId(Integer sid);

    double calculateAndSaveStorageFee(Outstorage outstorage) throws ParseException;

    List<Outstorage> findOutstoragesByDateRange(Date startDate, Date endDate);

    List<Outstorage> findOutstoragesByCompany(Integer cid);
}